﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SHeavenPlacardRecord extends IMessageBase
    {
        public var zoneA:int;
        public var zoneB:int;
        public var tPlacardCopyConfigId:int;
        public var bossLevel:int;
        public var name:String;
        public var record:String;
        public var displayPlayer:SDisplayPlayer;
        public const _type:int = 5061;
        public static var _regist:SHeavenPlacardRecord = new SHeavenPlacardRecord(true);

        public function SHeavenPlacardRecord(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SHeavenPlacardRecord();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.zoneA);
            param1.writeInt(this.zoneB);
            param1.writeInt(this.tPlacardCopyConfigId);
            param1.writeInt(this.bossLevel);
            param1.writeString(this.name);
            param1.writeString(this.record);
            this.displayPlayer.__write(param1);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.zoneA = param1.readInt();
            this.zoneB = param1.readInt();
            this.tPlacardCopyConfigId = param1.readInt();
            this.bossLevel = param1.readInt();
            this.name = param1.readString();
            this.record = param1.readString();
            this.displayPlayer = new SDisplayPlayer();
            this.displayPlayer.__read(param1);
            return;
        }// end function

    }
}
